package com.hxx.day3;

import java.io.InputStream;
import java.util.HashMap;

public class TestDemo1 {
    public static void main(String[] args) {
        new B();
    }
}

abstract class A{
    public A(){
        System.out.println("父类的构造方法");
    }
    public void show(){
        System.out.println("show");
    }

    //抽象方法
    public abstract void show1();
}

class B extends A{
    @Override
    public void show1() {
        System.out.println("show1");
    }
}






















